<?php

use yii\bootstrap\ActiveForm;
use yii\bootstrap\Html;

/**
 * @var $this \yii\web\View
 * @var $model \app\modules\admin\models\AdminForm
 * User: JSparrow
 * DateTime: 2016/11/22 15:35
 * Created by PhpStorm.
 */

$this->title = '新增管理员';

$this->params['breadcrumbs'][] = ['label'=>'管理员', 'url'=>['admin/index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="row">
    <div class="col-md-8 col-md-offset-2">
        <div class="box box-primary">
            <div class="box-header with-border">
                <h3 class="box-title"><?= Html::encode($this->title) ?></h3>
            </div>
            <div class="box-body">
            <?php $form = ActiveForm::begin([
                'layout' => 'horizontal'
            ]) ?>
            <?= $form->field($model, 'username')->textInput() ?>

            <?= $form->field($model, 'email')->textInput() ?>

            <?= $form->field($model, 'mobile')->textInput() ?>

            <?= $form->field($model, 'password')->passwordInput() ?>

            <?= $form->field($model, 'repassword')->passwordInput() ?>
            </div>
            <div class="box-footer">
                <?= Html::submitButton('提交', [
                    'class' => 'btn btn-primary pull-right',
                ]) ?>
            </div>
            <?php ActiveForm::end() ?>
        </div>
    </div>
</div>
